package ua.at.javac.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table (name="wind")
public class Wind implements Serializable{

	private static final long serialVersionUID = 1L;

	Wind(){
	}

	@Id
	@Column(name="wind_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private int id;
	
	@Column(name="windDirection", length=2)
	private String windDirection;
	
	@OneToMany(mappedBy="wind")
	private Set <Journal> journal;
}